﻿using DadayunApi.Model;
using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.Text;

namespace KhtApi.Model
{
    /// <summary>
    /// 销售订单执行进度报表
    /// 报表名称：销售订单执行进度查询
    /// </summary>
    public class SoBillBoardReport
    {
        public List<SoBillBoard> Results { get; set; }
    }

    public class SoBillBoard
    {
        public int RowNum { get; set; }
        public ReportDataObject DataObjs { get; set; }

        [JsonProperty(PropertyName = "计划情况", NullValueHandling = NullValueHandling.Ignore)]
        public string PlanStatus { get; set; }

        [JsonProperty(PropertyName = "发货情况", NullValueHandling = NullValueHandling.Ignore)]
        public string FHStatus { get; set; }

        [JsonProperty(PropertyName = "库存数量", NullValueHandling = NullValueHandling.Ignore)]
        public double StockQty { get; set; }

        [JsonProperty(PropertyName = "发货数量", NullValueHandling = NullValueHandling.Ignore)]
        public double FHQty { get; set; }

        [JsonProperty(PropertyName = "退货数量", NullValueHandling = NullValueHandling.Ignore)]
        public double THQty { get; set; }

        [JsonProperty(PropertyName = "净发货数量", NullValueHandling = NullValueHandling.Ignore)]
        public double RealFHQty { get; set; }

        [JsonProperty(PropertyName = "新计划数", NullValueHandling = NullValueHandling.Ignore)]
        public double PlanQty { get; set; }

        [JsonProperty(PropertyName = "旧计划数", NullValueHandling = NullValueHandling.Ignore)]
        public double OldPlanQty { get; set; }

        [JsonProperty(PropertyName = "销售订单号", NullValueHandling = NullValueHandling.Ignore)]
        public string SoNo { get; set; }

        [JsonProperty(PropertyName = "销售代表", NullValueHandling = NullValueHandling.Ignore)]
        public string Saler { get; set; }

        [JsonProperty(PropertyName = "客户名称", NullValueHandling = NullValueHandling.Ignore)]
        public string CusName { get; set; }

        [JsonProperty(PropertyName = "客户编码", NullValueHandling = NullValueHandling.Ignore)]
        public string CusNo { get; set; }
        [JsonProperty(PropertyName = "客户订单号", NullValueHandling = NullValueHandling.Ignore)]
        public string CusPoNo { get; set; }

        [JsonProperty(PropertyName = "订单日期", NullValueHandling = NullValueHandling.Ignore)]
        public DateTime SoDate { get; set; }

        [JsonProperty(PropertyName = "产品编码", NullValueHandling = NullValueHandling.Ignore)]
        public string ItemCode { get; set; }

        [JsonProperty(PropertyName = "产品名称", NullValueHandling = NullValueHandling.Ignore)]
        public string ItemName { get; set; }

        [JsonProperty(PropertyName = "型号", NullValueHandling = NullValueHandling.Ignore)]
        public string ModelNo { get; set; }

        [JsonProperty(PropertyName = "规格", NullValueHandling = NullValueHandling.Ignore)]
        public string ItemSpec { get; set; }

        [JsonProperty(PropertyName = "单位", NullValueHandling = NullValueHandling.Ignore)]
        public string Unit { get; set; }

        [JsonProperty(PropertyName = "版本", NullValueHandling = NullValueHandling.Ignore)]
        public string Version { get; set; }

        [JsonProperty(PropertyName = "订单数量", NullValueHandling = NullValueHandling.Ignore)]
        public double SoQty { get; set; }

        [JsonProperty(PropertyName = "来源", NullValueHandling = NullValueHandling.Ignore)]
        public string OriginCn { get; set; }

        [JsonProperty(PropertyName = "大类", NullValueHandling = NullValueHandling.Ignore)]
        public string Catagory1 { get; set; }

        [JsonProperty(PropertyName = "中类", NullValueHandling = NullValueHandling.Ignore)]
        public string Catagory2 { get; set; }

        [JsonProperty(PropertyName = "小类", NullValueHandling = NullValueHandling.Ignore)]
        public string Catagory3 { get; set; }
    }
}
